 function chat() {
        var currValue;
        $("#NewsPic").find(".Img").each(function (imgIndex) {
        	 if ($(this).css("display") != "none") {
                currValue = imgIndex+1;//$(this).find("img").attr("src");
                if (currValue == $("#NewsPic").find(".Img").length) {
                    currValue = 1;
                }
                else {
                    currValue = currValue + 1;
                }
            }
        });
        $("#NewsPic").find("img").each(function (imgIndex) {
            var selValue = imgIndex+1;//$(this).attr("src");
            if (selValue == currValue && !$(this).parent().is(":visible")) {
                $("#NewsPic").find(".Img").hide();
                $(this).parent().show();
            }
        });
        $(".tu_page").find("li").each(function (pIndex) {
            var Value = pIndex+1;//parseInt($(this).find("a").html());
            if (Value == currValue) {
                $(this).parent().find("li").removeClass("banner_current");
                $(this).addClass("banner_current");
            }
        });
    }
$(document).ready(function () {
    var interval = setInterval(chat, "2000");
    $(".tu_page").find("li").each(function (pIndex) {
        $(this).mouseover(function () {
            clearInterval(interval);
            $(this).parent().find("li").removeClass("banner_current");
            $(this).addClass("banner_current");
            var selValue = pIndex+1;//$(this).find("a").html();
            $("#NewsPic").find("img").each(function (imgIndex) {
                var currValue = imgIndex+1;//$(this).attr("src");
                if (selValue == currValue && !$(this).parent().is(":visible")) {
                    $("#NewsPic").find(".Img").hide();
                    $(this).parent().show();
                }
            });

        });
        $(this).mouseout(function () {
            interval = setInterval(chat, "2000"); 
        });
    });
});
